package com.company.card_service.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.company.card_service.model.Passage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.card_service.vo.PassageAndView;
import com.company.card_service.vo.PassageFromVo;
import com.company.card_service.vo.PassageQueryVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 赵志浩
 * @since 2022-09-15 04:15:07
 */
@Mapper
public interface PassageMapper extends BaseMapper<Passage> {
    List<PassageFromVo> queryPassage(Page<PassageFromVo> pageParam, PassageQueryVo passageQueryVo);

    List<PassageAndView> getPassageByTypeId(Integer id);

    PassageAndView getPassageDetail(Integer id);
}
